import Vue from 'vue'
import App from './layouts/app.vue'
// import Vuex from './plugins/vuex.js'

Vue.config.productionTip = false
//全局资源 优化
import './assets/css/base.css'
import './assets/js/font.js'

//引入路由配置

import router from './plugins/router.js'


//引入vant 的配置

import './plugins/vant.js'

//引入axios的配置
import './plugins/axios.js'

//引入服务器地址
import {url} from './server.js'
Vue.prototype.$serverUrl=url

//引入vuex的配置
import store from './plugins/vuex.js'

let user = window.localStorage.getItem('user')
user = user ? JSON.parse(user) : {
		err:2,
		msg:'token失败',
		token:'',
		data:{}
		
	}  

store.commit('user/user',user)

new Vue({

  render: h=>h(App),
  router,store
 
}).$mount('#app')
